package cn.tellsea.controller;

import cn.tellsea.entity.AjaxResult;
import cn.tellsea.entity.BizOrder;
import cn.tellsea.service.IBizOrderService;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 订单表 前端控制器
 * </p>
 *
 * @author Tellsea
 * @since 2021-12-31
 */
@RestController
@RequestMapping("/bizOrder")
public class BizOrderController {

    @Autowired
    private IBizOrderService orderService;

    @ApiOperation("创建订单")
    @GetMapping("/createOrder")
    public AjaxResult createOrder(BizOrder entity) {
        return orderService.createOrder(entity);
    }
}
